package com.neusoft.neps.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class user implements Serializable {
    private String PhoneNumber;
    private String Name;
    private String year;
    private String month;
    private String day;
    private String gender;
    private String password;
    private String grid;
    private String address;
    private String aqiLevel;
    private String feedbackText;
    private LocalDateTime timestamp;


    public user(String phoneNumber, String name, String year, String month, String day, String gender, String password,String grid, String address, String aqiLevel, String feedbackText) {
        this.PhoneNumber = phoneNumber;
        this.Name = name;
        this.year = year;
        this.month = month;
        this.day = day;
        this.gender = gender;
        this.password = password;
        this.grid = grid;
        this.address = address;
        this.aqiLevel = aqiLevel;
        this.feedbackText = feedbackText;
        this.timestamp = LocalDateTime.now();
    }

    public user() {
    }

    public String getPhoneNumber() {
        return PhoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        PhoneNumber = phoneNumber;
    }

    public String getName() {
        return this.Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getGender() {
        return this.gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public String getFormattedTimestamp() {
        return timestamp.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
    }

    public String getGrid() {
        return grid;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setGrid(String province) {
        this.grid = grid;
    }
    public void setAqiLevel(String aqiLevel) {
        this.aqiLevel = aqiLevel;
    }
    public String getAqiLevel() {
        return aqiLevel;
    }
    public void setFeedbackText(String feedbackText) {
        this.feedbackText = feedbackText;
    }
}